package ipdesk.model.analysis.dao;



import ipdesk.model.analysis.bean.AnalysisDesignBean;

import java.util.List;
import java.util.Map;

import com.ibatis.dao.client.DaoManager;
import com.opensymphony.xwork2.ActionContext;

import ecg.dao.DaoService;

public class AnalysisDesignDao {
	
	private static AnalysisDesignDao singleton;
		
	protected AnalysisDesignDao(){}
	
	public static AnalysisDesignDao getInstance()
	{
		if(singleton == null)
		{
			singleton = new AnalysisDesignDao();
		}
		
		return singleton;
	}
	
	private DaoManager	manager	= DaoService.getInstance();
	private IAnalysisDesign analysisDesign 	= (IAnalysisDesign)manager.getDao(IAnalysisDesign.class, "ip_desk");
	
	ActionContext context = ActionContext.getContext();
	Map<String, String> session = (Map<String, String>)context.getSession();
	

	
	public List<AnalysisDesignBean> getAnalysisDesignList(AnalysisDesignBean analysisDesignBean) throws Exception{
		
		List<AnalysisDesignBean> analysisDesignList = analysisDesign.getAnalysisDesignList(analysisDesignBean);
		
		return analysisDesignList;
	}

}
